Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Search box above section list #277 #278

Merged
merged 8 commits into from
Jul 23, 2023

Conversation

ksaswin
Copy link
Contributor

@ksaswin ksaswin commented Apr 4, 2023

Add feature requested in issue #277

Add new SectionFilter component to filter slugs based on section names
Update SectionsColumn to display filtered sections
Add units tests for SectionFilter component

A screenshot of the implementation:
image

Add new SectionFilter component to filter slugs based on section names
Update SectionsColumn to display filtered sections
Add units tests for SectionFilter component
@vercel
Copy link

vercel bot commented Apr 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
readme-so ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2023 11:21am

@octokatherine
Copy link
Owner

Hey @ksaswin, thanks for this contribution, I love the concept!

A couple small things:

  • can we move the search box above the "Custom section" button?
  • when a section is clicked on, can we clear out the search input? I think the UX would feel a little nicer

@octokatherine octokatherine added the question Further information is requested label May 3, 2023
@ksaswin
Copy link
Contributor Author

ksaswin commented May 4, 2023

Hi @octokatherine,

Yeah, sounds good to me. I'll start working on those changes right away 😊

Remove search input after selecting a section
Move search filter logic to SectionsColumn component
Update SectionFilter unit test
@ksaswin
Copy link
Contributor Author

ksaswin commented May 4, 2023

Hi @octokatherine,

I've pushed the requested changes. Please feel free to let me know if you'd like me to make any more updates to the same.

Thank you 😊

Copy link
Owner

@octokatherine octokatherine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small suggestion, but it's looking good!

setSelectedSectionSlugs((prev) => [...prev, section])
setFocusedSectionSlug(localStorage.getItem('current-focused-slug'))
resetSearchFilter('')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resetSearchFilter('')
resetSearchFilter()

don't think you need that argument!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @octokatherine,

Nice catch 😄 I don't know how I missed this! I've pushed the requested changes.

Thank you 😊

@octokatherine octokatherine merged commit ff1e825 into octokatherine:main Jul 23, 2023
@ksaswin ksaswin deleted the Feat/sections-typeahead branch July 24, 2023 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants